#ifndef DEVICE_FILE_H
#define DEVICE_FILE_H

#include <QString>

class DeviceFile
{
public:
    explicit DeviceFile() {}
    virtual ~DeviceFile() = default;

    //获得设备号码
    virtual unsigned char getDeviceNumber() const = 0;

    //获得相机唯一序列号
    virtual QString getDeviceSerialNumber() const = 0;

    //写入sensor曝光总数
    virtual int setExposureAmount(double value_update) = 0;
    //获得sensor曝光总数
    virtual unsigned int getExposureAmount() const = 0;

    //清空文件存储
    virtual int clearStorage(unsigned char position, unsigned short number) = 0;

    //内部存储滚动覆盖
    virtual int interStorageRollingOverlay() = 0;

    //获得存储容量
    virtual int getStorageCapacity(unsigned int &internal_storage, unsigned int &external_storage) = 0;
};

#endif // DEVICE_FILE_H
